package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.pojo.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 管理员 mapper 层
 */
@Mapper
public interface AdminMapper extends BaseMapper<Admin> {

    /**
     * 分页查询
     *
     * @param pageObject MybatisPlus 分页对象
     * @param admin 条件对象
     * @return 分页结果
     */
    IPage<Admin> pageQuery(@Param("pageObject") IPage<Admin> pageObject, @Param("admin") Admin admin);
}
